<template>
<div class="boot">
    <home-header></home-header>
    <home-new-human></home-new-human>
    <home-activity></home-activity>
    <home-choiceness class="choice"></home-choiceness>
    <home-guess-love class="guessLove"></home-guess-love>
</div>
</template>

<script>
import axios from 'axios'
// 各个组件的说明，组件里面有文档。
import HomeActivity from './compontents/activity/Activity'
import HomeChoiceness from './compontents/choiceness/Choiceness'
import HomeGuessLove from './compontents/guess-love/GuessLove'
import HomeHeader from './compontents/header/Header'
import HomeNewHuman from './compontents/new-human/new-human'
export default {
    name: 'Home',
    components: {
        HomeActivity,
        HomeChoiceness,
        HomeGuessLove,
        HomeHeader,
        HomeNewHuman,
    },
    // methods:{
    //     request(){
    //         axios.post('api',{
    //             params:{
    //                 "actId":"15040101"
    //             }
    //         }).then(function(result){
    //             console.log(result);
    //         }).catch(function(error){
    //             console.log(error)
    //         })
    //     }
    // },
    // mounted(){
    //     this.request();
    // }
}
</script>

<style scoped>
/* 设定整体的内边距，和背景颜色 */
.boot {
    padding: 0 .4rem 1rem .4rem;
    background-color: #F7F6F7;
    font-size: .4rem;
}

/* 设定所有模块的背景颜色，圆角 */
.boot>* {
    background-color: #FFFFFF;
    border-radius: .2rem;
}

.choice {
    margin-top: .4rem;
}

.guessLove {
    margin-top: .4rem;
}
</style>
